import CrudService from '../global/CrudService'

let instance = null

// 后端路径
const prefix = '/taskWarnManagement'

class Service extends CrudService {
	constructor() {
		super(prefix)
		return instance || this
	}
	
	static getInstance() {
		if (!instance) {
			instance = new Service()
		}
		return instance
	}
	
	
	getList = async (query = {}) => {
		return this.get(`${prefix}/queryOvertimeMessageList`, query)
	}
	
	insertDb = (model) => {
		return this.post(`/rptManTip/insertDb`, model);
	}
}

export default Service.getInstance()
